﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SalesStatis.aspx.cs" Inherits="Sales_SalesStatis" %>

<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../js/rl.js"></script>

    <script type="text/javascript">
    function CheckAll(form) {
	    for (var i=0;i<form.elements.length;i++) {
		    var e = form.elements[i];
		    if (e.name != 'chkall' && e.type=='checkbox')
			    e.checked = form.chkall.checked;
	    }
    }

    </script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="31" height="22">
                    <img src="../images/module.gif" width="20" height="22"></td>
                <td style="width: 232px">
                    <asp:Label ID="lblPath" runat="server"></asp:Label></td>
                <td width="990" align="right">
                    <img src="../images/search.gif" alt="搜索" width="16" height="16" />
                    查询日期：<asp:TextBox ID="txtKdate" runat="server" CssClass="input1" Width="80px" MaxLength="10"></asp:TextBox>至<asp:TextBox
                        ID="txtJdate" runat="server" CssClass="input1" Width="80px" MaxLength="10"></asp:TextBox>商品名称：<asp:TextBox
                            ID="txtGuest" runat="server" CssClass="input1" Width="100px"></asp:TextBox>
                    编号：<asp:TextBox ID="txtSalesCode" runat="server" CssClass="input1" Width="100px"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" CssClass="submit" OnClick="btnSearch_Click" /></td>
            </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="5px">
                </td>
            </tr>
        </table>
        <asp:GridView ID="GvData" runat="server" Width="99%" AutoGenerateColumns="False"
            CssClass="gridview" EmptyDataText="没有数据">
            <PagerSettings Visible="False" />
            <Columns>
                
                <asp:BoundField HeaderText="商品名称" DataField="comodName">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="型号" DataField="modul">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="销售数量" DataField="number1">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="单位" DataField="unit">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="销售总金额">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("TotalMoney1","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
        <table align="center">
            <tr>
                <td>
                    <uc1:PageNavigator ID="PageNavigator1" ConnectionString="connstr" DataId="GvData"
                        ShowType="Text" PageSize="15" runat="server" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
